| Conditions | 3 |
| Total Lines | 21 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, { Component, Fragment } from "react" |
||
| 44 | |||
| 45 | render() { |
||
| 46 | if (this.state.loading === false && this.state.data) { |
||
| 47 | const { next, previous } = this.state.data |
||
| 48 | |||
| 49 | if (previous || next) { |
||
| 50 | return ( |
||
| 51 | <Fragment> |
||
| 52 | <div className={"team-calendar-meta-matches"}> |
||
| 53 | {previous && ( |
||
| 54 | <MatchWithLogo match={previous.match} lazyload={true} /> |
||
| 55 | )} |
||
| 56 | {next && <MatchWithLogo match={next.match} lazyload={true} />} |
||
| 57 | </div> |
||
| 58 | </Fragment> |
||
| 59 | ) |
||
| 60 | } else { |
||
| 61 | return null |
||
| 62 | } |
||
| 63 | } else { |
||
| 64 | return null |
||
| 65 | } |
||
| 94 |